package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 家庭表
 * </p>
 *
 * @author stylefeng
 * @since 2021-04-12
 */
@TableName("family")
public class Family extends Model<Family> {

    private static final long serialVersionUID = 1L;

    /**
     * 家庭id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 家庭类型id
     */
    private String familykindid;
    /**
     * 创建人id
     */
    private Integer createid;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updatetime;
    /**
     * 更新人id
     */
    private Integer updateid;
    /**
     * 备注
     */
    private String remark;
    /**
     * 空闲字段1
     */
    private String spare1;
    /**
     * 空闲字段2
     */
    private String spare2;
    /**
     * 空闲字段3
     */
    private String spare3;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFamilykindid() {
        return familykindid;
    }

    public void setFamilykindid(String familykindid) {
        this.familykindid = familykindid;
    }

    public Integer getCreateid() {
        return createid;
    }

    public void setCreateid(Integer createid) {
        this.createid = createid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getUpdateid() {
        return updateid;
    }

    public void setUpdateid(Integer updateid) {
        this.updateid = updateid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSpare1() {
        return spare1;
    }

    public void setSpare1(String spare1) {
        this.spare1 = spare1;
    }

    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2;
    }

    public String getSpare3() {
        return spare3;
    }

    public void setSpare3(String spare3) {
        this.spare3 = spare3;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Family{" +
        ", id=" + id +
        ", familykindid=" + familykindid +
        ", createid=" + createid +
        ", createtime=" + createtime +
        ", updatetime=" + updatetime +
        ", updateid=" + updateid +
        ", remark=" + remark +
        ", spare1=" + spare1 +
        ", spare2=" + spare2 +
        ", spare3=" + spare3 +
        "}";
    }
}
